<?php

/**
 * @application Automatical Judging System
 * @author deltamaster
 * @copyright Softrank Research Center
 * @version 2.0.0.0
 */

require_once "./include/common.inc.php";

if (isset($_GET['username']))
{
    if ($_GET['username'])
    {
        if (VerifyUsername($_GET['username'])) echo $lang['valid'];
        else  echo $lang['invalid'] . ': ' . $lang['username_request'];
    }
    else
    {
        echo 'No input';
    }
} elseif (isset($_GET['password']))
{
    if (VerifyPassword($_GET['password'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['password_request'];
} elseif (isset($_GET['realname']))
{
    if (VerifyRealName($_GET['realname'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['realname_request'];
} elseif (isset($_GET['email']))
{
    if (VerifyEmail($_GET['email'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['email_request'];
} elseif (isset($_GET['mobile']))
{
    if (VerifyMobile($_GET['mobile'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['mobile_request'];
} elseif (isset($_GET['time']))
{
    if (VerifyTime($_GET['time'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['time_request'];
} elseif (isset($_GET['contestname']))
{
    if (VerifyContestName($_GET['contestname'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['contestname_request'];
} elseif (isset($_GET['problem']))
{
    if (VerifyProblem($_GET['problem'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['problem_request'];
} elseif (isset($_GET['score']))
{
    if (VerifyScore($_GET['score'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['score_request'];
} elseif (isset($_GET['studentid']))
{
    if (VerifyStudentId($_GET['studentid'])) echo $lang['valid'];
    else  echo $lang['invalid'] . ': ' . $lang['studentid_request'];
}

?>